<template>
  <div style="height: calc(100% - 55px);">
    <el-form
      ref="form"
      :model="form"
      label-position="top"
      label-width="90px"
      class="dv-form p-15"
    >
      <el-row :gutter="20">
        <el-col :span="24">
          <el-form-item label="移送涉案财物情况" prop="c1">
            <el-input
              v-model.trim="form.c1"
              type="textarea"
              :disabled="type === 'detail' || status === 4"
              placeholder="请输入"
              :maxlength="40"
            />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item label="案件受理时间" prop="c2">
            <el-date-picker
              v-model="form.c2"
              :disabled="type === 'detail' || status === 4"
              type="date"
              value-format="yyyy-MM-dd"
              class="w-100"
              placeholder="请选择"
            />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="评查结果" prop="c7">
            <el-select v-model="form.c7" class="w-100" placeholder="请选择" clearable :disabled="type === 'detail' || status === 4">
              <el-option label="A级" value="A级" />
              <el-option label="B级" value="B级" />
              <el-option label="C级" value="C级" />
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="24">
          <el-form-item label="强制措施" prop="c3">
            <el-input
              v-model.trim="form.c3"
              :disabled="type === 'detail' || status === 4"
              type="textarea"
              placeholder="请输入"
              :maxlength="40"
            />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="24">
          <el-form-item label="文书质量" prop="c4">
            <el-input
              v-model.trim="form.c4"
              :disabled="type === 'detail' || status === 4"
              type="textarea"
              placeholder="请输入"
              :maxlength="40"
            />
          </el-form-item>
        </el-col>
      </el-row>

      <el-row :gutter="20">
        <el-col :span="24">
          <el-form-item label="管辖" prop="c5">
            <el-input
              v-model.trim="form.c5"
              :disabled="type === 'detail' || status === 4"
              type="textarea"
              placeholder="请输入"
              :maxlength="40"
            />
          </el-form-item>
        </el-col>
      </el-row>
      <!-- <el-row v-if="list.length" :gutter="20">
        <el-col :span="24">
          <el-form-item label="案卡漏填、错填情况" prop="c6">
            <el-table :data="list">
              <el-table-column type="index" label="序号" width="50" />
              <el-table-column align="center" prop="name" label="名称">
                <template slot-scope="scope">
                  {{ scope.row.name }}{{ ['漏填', '错填'][+scope.row.type - 1] }}
                </template>
              </el-table-column>
            </el-table>
          </el-form-item>
        </el-col>
      </el-row> -->

    </el-form>
  </div>
</template>

<script>
export default {

  props: {
    type: {
      type: String,
      default: ''
    },
    status: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {
      form: {
        c1: '',
        c2: '',
        c3: '',
        c4: '',
        c5: '',
        c6: '',
        c7: ''
      },
      rowData: {}
    }
  },
  methods: {
    init(rowData) {
      this.rowData = rowData
    }
  }
}
</script>

<style scoped lang='scss'>

</style>
